<?php
class DealsAppController extends AppController {
	
	function beforeFilter()
	{
		if(!checkSessionKeyForDeals())
		{
			if(isset($this->params['admin']) && $this->params['admin'])
			{
				$this->warningMsg(__("You haven't entered a license for Deals addon yet. Please add the license."));
				$this->redirect('/admin/config/generic_config/setting/License');
			}
			else
			{
				$this->errorMsg(__("Invalid URL"));
				$this->redirect('/');
			}
		}
		parent::beforeFilter();
	}
	
}
?>